<!--
  ~
  ~   Copyright 2016 alh Technology
  ~
  ~   Licensed under the Apache License, Version 2.0 (the "License");
  ~   you may not use this file except in compliance with the License.
  ~   You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~   Unless required by applicable law or agreed to in writing, software
  ~   distributed under the License is distributed on an "AS IS" BASIS,
  ~   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~   See the License for the specific language governing permissions and
  ~   limitations under the License.
  ~
  -->

<div class="main-content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-4">
                <div class="card">
                    <div class="header">
                        <h4 class="title text-primary">Master GC stats</h4>
                    </div>
                    <div class="content simple-text">
                        <div class="content table-responsive table-responsive">
                            <table class="table table-hover table-striped">
                                <thead>
                                <tr>
                                    <th>METRICS KEY</th>
                                    <th>METRICS VALUE</th>
                                </tr>
                                </thead>
                                <tbody *ngIf="metrics">
                                <tr *ngFor="let metric of getGcMetrics(metrics)" routerLinkActive="active" >

                                    <td>{{metric.key}}</td>
                                    <td>{{metric.val}}</td>
                                </tr>
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="card">
                    <div class="header">
                        <h4 class="title text-primary">Master Memory</h4>
                    </div>
                    <div class="content simple-text">
                        <div class="content table-responsive table-responsive">
                            <table class="table table-hover table-striped">
                                <thead>
                                    <tr>
                                        <th>METRICS KEY</th>
                                        <th>METRICS VALUE</th>
                                    </tr>
                                </thead>
                                <tbody *ngIf="metrics">
                                <tr *ngFor="let metric of getMemoryMetrics(metrics)" routerLinkActive="active" >

                                    <td>{{metric.key}}</td>
                                    <td>{{metric.val}}</td>
                                </tr>
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4">
                <div class="card">
                    <div class="header">
                        <h4 class="title text-primary">Master Thread</h4>
                    </div>
                    <div class="content simple-text">
                        <div class="content table-responsive table-responsive">
                            <table class="table table-hover table-striped">
                                <thead>
                                <tr>
                                    <th>METRICS KEY</th>
                                    <th>METRICS VALUE</th>
                                </tr>
                                </thead>
                                <tbody *ngIf="metrics">
                                <tr *ngFor="let metric of getThreadMetrics(metrics)" routerLinkActive="active" >

                                    <td>{{metric.key}}</td>
                                    <td>{{metric.val}}</td>
                                </tr>
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
